#ifndef __APEXBRAIN_RANKWIDGET_H_
#define __APEXBRAIN_RANKWIDGET_H_

#include <QWidget>
#include <QtNetwork/QNetworkAccessManager>
#include <QtNetwork/QNetworkReply>
#include <QtNetwork/QNetworkRequest>
#include "global.h"
#include <QJsonArray>

namespace Ui {
    class RankWidget;
}

class RankWidget : public QWidget
{
    Q_OBJECT

public:
    explicit RankWidget(QWidget *parent = nullptr);
    ~RankWidget();

protected:
    void closeEvent(QCloseEvent *event) override;

private:
    Ui::RankWidget *ui;

    QNetworkAccessManager *m_networkAccessManager;

    QJsonArray m_users;
};

#endif // __APEXBRAIN_RANKWIDGET_H_
